package yh.design.factorysimple.impl;

import yh.design.common.res.APIResult;
import yh.design.factorysimple.AbstractPayment;

import java.math.BigDecimal;


/**
 * 账户现金支付
 * @author: zyh
 * @date: 2025/4/5 21:57
 **/
public class CashPayment extends AbstractPayment {

    //账户现金支付逻辑
    public APIResult pay(BigDecimal amount, String userId, String payCode){

        //1.扣减账户余额
        System.out.println("扣减账户余额");
        //2.消费账单记录
        System.out.println("消费账单记录");
        return APIResult.success();
    }
}
